package com.xiaobai.util;

import lombok.extern.slf4j.Slf4j;
import org.openjdk.jol.info.ClassLayout;

@Slf4j
public class ObjectHeadUtil {
    public static String getMarkWord(Object obj) {
        ClassLayout classLayout = ClassLayout.parseInstance(obj);
        String printable = classLayout.toPrintable();
//        log.debug("对象的信息是:{}",printable);
        return printable;
    }
}